#include <iostream>
using namespace std;

class Complex {
public:
	double r, i;
	Complex(double r = 0, double i = 0) :r(r), i(i) {}
	Complex operator-(const Complex& c);
};

Complex operator+(const Complex& a, const Complex& b) {
	return Complex(a.r + b.r, a.i + b.i);
}

Complex Complex::operator-(const Complex& b) {
	return Complex(r - b.r, i - b.i);
}

int main()
{
	Complex a(4, 4), b(1, 1), c;
	c = a + b;
	cout << c.r << "," << c.i << endl;
	cout << (a-b).r << "," << (a-b).i << endl;
	return 0;
}